package cn.kongwg.contorller;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author kongwg
 * @create 2021-03-06 23:27
 */
@Controller
@RequestMapping("/user")
public class UserContorller {

    @RequestMapping("/hello")
    public String getUser(Model model){

        model.addAttribute("msg","hello,springmvc。。。。。");

        return "hello";
    }
}
